package com.gitease.quickhub.service;

import com.gitease.quickhub.model.Commit;
import com.gitease.quickhub.model.Repository;
import com.gitease.quickhub.model.RepositoryFile;

import java.util.List;

public interface RepositoryService {
    List<Repository> getUserRepositories(String accessToken);
    Repository getRepository(String accessToken, String owner, String repo);
    List<RepositoryFile> getRepositoryContents(String accessToken, String owner, String repo, String path, String ref);
    RepositoryFile getRepositoryFile(String accessToken, String owner, String repo, String path, String ref);
    List<Commit> getRepositoryCommits(String accessToken, String owner, String repo, String branch);
    Commit createCommit(String accessToken, String owner, String repo, String path, String content, String message, String branch);
    List<String> getRepositoryBranches(String accessToken, String owner, String repo);
}